< previous page page_651 next page >

Page 651
The fact that a point's X and Z coordinates do not change is reflected in the four-dimensional transformation matrix. The first and third rows and columns, which correspond to the X and Z coordinates, are the same as those in the identity matrix. The other rows and columns are different.
e10a6a0a59f035e870d90cca05b85fce.gif
 z0671-01.gif
You can use translations and rotations to rotate a point around a plane other than one of the six coordinate planes.
Inverse Transformations
Most of the four-dimensional inverse transformations are as easy to compute as are their two- and three-dimensional counterparts. To reverse a translation by distances Tx, Ty, Tz, and Tw, simply translate by distances -Tx, -Ty, -Tz, and -Tw. To reverse a scaling by amounts Sx, Sy, Sz, and Sw, scale by the inverses of those amounts: 1/Sx, 1/Sy, 1/Sz, and 1/Sw. To reverse a rotation through angle q around a plane, rotate around that plane through angle -q.
Projections
As is the case in three dimensions, there are two major categories of projections in four dimensions: parallel and perspective. The following two sections describe the simplest of these projections. You can project in different directions from different centers of projection by using translations and rotations before you perform the projection.
Parallel Projections
Under the category of parallel projections, you could define all sorts of strange oblique projections similar to the three-dimensional cavalier and cabinet projections. These tend to confuse an already complicated situation, however. For that reason, this section describes only orthographic projectionsparallel projections in which the projectors are perpendicular to the plane of projection.
In two dimensions, you can project a point onto a line. The simplest parallel projection would project a point parallel to one coordinate axis onto the other. For instance, you might project a point parallel to the Y axis onto the X axis. You could do this by simply ignoring the point's Y coordinate. Of course in computer graphics, you generally want to display images on a two-dimensional screen, so there is not much call for this sort of projection.
In three dimensions, you can project a point onto a plane. In the simplest parallel projections, you project a point parallel to one coordinate axis onto the plane defined by

 
< previous page page_651 next page >